var lost_pw, lost_pw_2;
jQuery(function($) {
    $('.type_a').click(function(e) {
        $('#type_a-modal-content').modal(popupOptions.type_a);
        return false;
    });
});
jQuery(function($) {
    $('.type_b').click(function(e) {
        $('#type_b-modal-content').modal(popupOptions.type_b);
        return false;
    });
});
jQuery(function($) {
    $('.type_c').click(function(e) {
        $('#type_c-modal-content').modal(popupOptions.type_c);
        return false;
    });
});
jQuery(function($) {
    $('#method_link_1').click(function(e) {
        $('#method_popup_1').modal({minWidth: 782, minHeight: 574, maxWidth: 782, maxHeight: 574});
        return false;
    });
});

//the story page - julia

jQuery(function($) {
    $('.type_1').click(function(e) {
        $('#type_1-modal-content').modal(popupOptions.type_a);
        return false;
    });
});
jQuery(function($) {
    $('.type_2').click(function(e) {
        $('#type_2-modal-content').modal(popupOptions.type_a);
        return false;
    });
});
jQuery(function($) {
    $('.type_3').click(function(e) {
        $('#type_3-modal-content').modal(popupOptions.type_a);
        return false;
    });
});
jQuery(function($) {
    $('.type_4').click(function(e) {
        $('#type_4-modal-content').modal(popupOptions.type_a);
        return false;
    });
});
jQuery(function($) {
    $('.lost_pw').click(function(e) {
        $("#imgCaptcha")[0].onload = function() {
            lost_pw = $('#lost_pw-modal-content').modal({
                minWidth: lostPwOptions.width,
                minHeight: lostPwOptions.height,
                maxWidth: lostPwOptions.width,
                maxHeight: lostPwOptions.height,
                focus: false
            });
            $("#imgCaptcha")[0].onload = null;
        };
        reloadCaptcha();
        return false;
    });
});
jQuery(function($) {
    $('.lost_pw_2').click(function(e) {
        lost_pw_2 = $('#lost_pw-modal-content_2').modal({
            minWidth: popupOptions2.width, 
            minHeight: popupOptions2.height, 
            maxWidth: popupOptions2.width, 
            maxHeight: popupOptions2.height,
            focus: false
        });
        return false;
    });
});
var lost_pw_msg;
jQuery(function($) {
    $('#lost_pw_msg_b').click(function(e) {
        lost_pw_msg = $('#lost_pw_msg').modal({minWidth: 400, minHeight: 135, maxWidth: 400, maxHeight: 180, close: false});
        return false;
    });
});



